package t1;

public class Test1 {

	public static void main(String[] args) {
		
		int[] item = {67,89,87,69,90,100,75,95};
		
		for(int i=0;i<item.length-1;i++){
			for(int j=0;j<item.length-1-i;j++){
				
				//比较换位置
				if(item[j]>item[j+1]){
					int temp = item[j];
					item[j] = item[j+1];
					item[j+1] = temp;
				}
				
			}
		}
		
		System.out.println("最小值:"+item[0]);
		System.out.println("最大值:"+item[item.length-1]);
		
	}
	
}
